<script setup>
import { useGenCodeStore } from '@/stores/genCode.js'
import { onMounted } from 'vue'
const genCodeStore = useGenCodeStore();

onMounted(()=>{
  genCodeStore.genCode();
})


</script>

<template>
  <a-spin :spinning="!genCodeStore.genCodeApiState" tip="初始化中...">
    <a-space wrap>
      <a-button href="/api/gen/down" rel="nofollow" type="primary" >
        下载文件
      </a-button>

      <a-button danger block @click="genCodeStore.genCode()">重新生成</a-button>
    </a-space>
  </a-spin>


</template>

<style scoped>

</style>
